package org.chen.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class ArticlePreviewVO {
    private String id;
    private String title;
    private String author;
    private String contentHtml;  // HTML格式的文章内容
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    private String source;      // admin/crawler
    private Integer status;     // 0草稿/1已发布/2已下架
    private Integer viewCount;  // 阅读数
}